﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="EditArticle.aspx.vb" Inherits="WeightLossProject.EditArticle" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" CssClass="formlabel" Text="Category:"></asp:Label>
    <asp:DropDownList ID="ddlCategory" runat="server" CssClass="frmDisplayEdit" 
        DataSourceID="dsCategories" DataTextField="CategoryName" DataValueField="ID">
    </asp:DropDownList>
    <asp:SqlDataSource ID="dsCategories" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID], [CategoryName] FROM [tblCategories]">
    </asp:SqlDataSource>
<br />
<asp:Label ID="Label2" runat="server" CssClass="formlabel" Text="Title: "></asp:Label>
<asp:TextBox ID="txtTitle" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
<br />
<asp:Label ID="Label3" runat="server" CssClass="formlabel" 
    Text="Current Picture: "></asp:Label>
<asp:Image ID="myPicture" runat="server" CssClass="frmDisplayEdit" />
<br />
<asp:Label ID="Label4" runat="server" CssClass="formlabel" 
    Text="Upload New Picture: "></asp:Label>
<asp:FileUpload ID="fuPicture" runat="server" CssClass="frmDisplayEdit" />
<br />
<asp:Label ID="Label5" runat="server" CssClass="formlabel" Text="Details: "></asp:Label>
<asp:TextBox ID="txtDetails" runat="server" CssClass="frmDisplayEdit" 
    Height="191px" TextMode="MultiLine" Width="436px"></asp:TextBox>
<br />
<asp:Button ID="btnUpdateArticle" runat="server" Text="Edit/ Update Article!" />
<br />
</asp:Content>
